var Obstaculo = function() {
	var id = -1, x = 100, y = 200, width = 80, height = 80, image, tipo;
	
	var getId = function() {
		return id;
	};
	
	var getX = function() {
		return parseFloat(x);
	};

	var getY = function() {
		return parseFloat(y);
	};
	
	var getWidth = function() {
		return width;
	};

	var getHeight = function() {
		return height;
	};
	
	var getImage = function() {
		return image;
	};
	
	var getTipo = function() {
		return tipo;
	};
	
	var setId = function(newId) {
		id = newId;
	};
	
	var setX = function(newX) {
		x = newX;
	};

	var setY = function(newY) {
		y = newY;
	};

	var setWidth = function(newWidth) {
		width = newWidth;
	};

	var setHeight = function(newHeight) {
		height = newHeight;
	};
	
	var setImage = function(newImage) {
		image = newImage;
	};
	
	var setTipo = function(newTipo) {
		tipo = newTipo;
	};
	
	var draw = function(canvas){
		canvas.drawImage(getImage(), getX(), getY());
	};
	
	return {
		getX : getX,
		getY : getY,
		getWidth : getWidth,
		getHeight : getHeight,
		getId:getId,
		getImage:getImage,
		getTipo:getTipo,
		setX : setX,
		setY : setY,
		setWidth : setWidth,
		setHeight : setHeight,
		setImage:setImage,
		setId:setId,
		setTipo:setTipo,
		draw:draw		
	};
	
};